﻿using System;
using Ficharts.Net.Examples.Code;

namespace Ficharts.Net.Examples.Examples.Columns
{
    public partial class Bar : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Chart.ChartTitle.Title = "2010年度销售情况";
                Chart.Suffix.XSuffix = "K";
                Chart.XAxises.Add(new LinearAxis {Title = "月份"});
                Chart.YAxises.Add(new FieldAxis {Title = "销售量"});
                Chart.Series.Add(new Net.Bar {XField = "Value",YField = "Label",SingleColor = true});
                Chart.DataSource = ExampleData.DemoData1();
                Chart.DataBind();
            }
        }
    }
}